<?php
/**
 * Description of page
 *
 * @author adrian
 */
class Core_Data_Page {
    
    /**
     * constructor
     */
    public function __construct() {
        
    }
    
    public function getController($request){
        
        //parse the page request and other GET variables
        $parsed = explode('&' , $request);

        //the page is the first element
        $page = array_shift($parsed);
        
        if($page = ""){
            $controller = ucfirst($page) . "_Controller_" . ucfirst($page);
        }
        else {
            $controller = "Index_Controller_Index";
        }
        
        return $controller;
        
    }
}

?>
